/**
 * @author yinyunqi
 * @datetime 2018年1月6日
 * @Content 
 */
package com.yongqi.service.console;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yongqi.mapper.console.BudgetMapper;
import com.yongqi.model.console.Budget;

@Service
public class BudgetService {
	 @Autowired
	    BudgetMapper budgetMapper;
	    //收入添加记录方法
	    public void budgetAdd(Budget budget) {
	    	budgetMapper.insertBudget(budget);
	    }
	    //收入分页查询方法
	    public List<Budget> queryPageItems(Map<String, String> map){
		List<Budget> billList = budgetMapper.queryPageBudgets(map);
		return billList;
	    }
	    //收入删除记录方法
	    public void deleteIncomeItems(String id) {
	    	budgetMapper.deleteBudgets(id);
	    }
	    //收入修改记录方法
	    public void incomeUpdate(Budget budget) {
	    	budgetMapper.updateBudget(budget);
	    }
}
